Optimal. Leaf size=50 \[ -\frac{d \text{PolyLog}\left (2,-e^{a+b x}\right )}{b^2}+\frac{d \text{PolyLog}\left (2,e^{a+b x}\right )}{b^2}-\frac{2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0398603, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {4182, 2279, 2391} \[ -\frac{d \text{PolyLog}\left (2,-e^{a+b x}\right )}{b^2}+\frac{d \text{PolyLog}\left (2,e^{a+b x}\right )}{b^2}-\frac{2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4182
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int (c+d x) \text{csch}(a+b x) \, dx &=-\frac{2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac{d \int \log \left (1-e^{a+b x}\right ) \, dx}{b}+\frac{d \int \log \left (1+e^{a+b x}\right ) \, dx}{b}\\ &=-\frac{2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac{d \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{a+b x}\right )}{b^2}+\frac{d \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^{a+b x}\right )}{b^2}\\ &=-\frac{2 (c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac{d \text{Li}_2\left (-e^{a+b x}\right )}{b^2}+\frac{d \text{Li}_2\left (e^{a+b x}\right )}{b^2}\\ \end{align*}
Mathematica [C] time = 0.0677337, size = 174, normalized size = 3.48 \[ \frac{d \left (-a \log \left (\tanh \left (\frac{1}{2} (a+b x)\right )\right )-i \left (i \left (\text{PolyLog}\left (2,-e^{i (i a+i b x)}\right )-\text{PolyLog}\left (2,e^{i (i a+i b x)}\right )\right )+(i a+i b x) \left (\log \left (1-e^{i (i a+i b x)}\right )-\log \left (1+e^{i (i a+i b x)}\right )\right )\right )\right )}{b^2}+\frac{c \log \left (\sinh \left (\frac{a}{2}+\frac{b x}{2}\right )\right )}{b}-\frac{c \log \left (\cosh \left (\frac{a}{2}+\frac{b x}{2}\right )\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 60, normalized size = 1.2 \begin{align*}{\frac{1}{b} \left ({\frac{d}{b} \left ( 2\,{\it dilog} \left ({{\rm e}^{-bx-a}} \right ) -{\frac{{\it dilog} \left ({{\rm e}^{-2\,bx-2\,a}} \right ) }{2}} \right ) }+2\,{\frac{da{\it Artanh} \left ({{\rm e}^{bx+a}} \right ) }{b}}-2\,c{\it Artanh} \left ({{\rm e}^{bx+a}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -c{\left (\frac{\log \left (e^{\left (-b x - a\right )} + 1\right )}{b} - \frac{\log \left (e^{\left (-b x - a\right )} - 1\right )}{b}\right )} + 2 \, d{\left (\int \frac{x}{2 \,{\left (e^{\left (b x + a\right )} + 1\right )}}\,{d x} + \int \frac{x}{2 \,{\left (e^{\left (b x + a\right )} - 1\right )}}\,{d x}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.59146, size = 340, normalized size = 6.8 \begin{align*} \frac{d{\rm Li}_2\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right ) - d{\rm Li}_2\left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )\right ) -{\left (b d x + b c\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + 1\right ) +{\left (b c - a d\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - 1\right ) +{\left (b d x + a d\right )} \log \left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right ) + 1\right )}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (c + d x\right ) \operatorname{csch}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (d x + c\right )} \operatorname{csch}\left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]